﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DCSLibrary;
using Utils.DatabaseUtils;

public partial class Module_Control_MainMenu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //BindMenu();
        }
    }

    //protected void BindMenu()
    //{
    //    FunctionPageUI functionPageObj = new FunctionPageUI();
    //    DataSet ds = functionPageObj.GetAll();

    //    DataTable dt = TableLib.CreateTable(ds.Tables[0], "IsAdmin = 0 and IsVisible = 1");
    //    grdMainMenu.DataSource = dt;
    //    grdMainMenu.DataBind();
    //}

    protected string SelectMainMenuStyle(string pageAlias)
    {
        if (Request.RawUrl.Trim().IndexOf(pageAlias.Trim()) != -1)
        {
            return "selected_menu_item";
        }
        else
        {
            return "menu_item";
        }
    }
}
